import { EntitySchema } from 'typeorm';

module.exports = new EntitySchema({
  name: 'Post',
  columns: {
    id: {
      type: Number,
      primary: true,
      generated: true,
    },
    title: {
      type: String,
    },
    text: {
      type: String,
    },
  },
});
